package org.quickstep.application.action;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import org.quickstep.application.Application;

public class ActionApplicationExit extends AbstractAction {

	private static final long serialVersionUID = 1L;
	
	public ActionApplicationExit() {
		super( "Exit");
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		Application app = Application.getInstance();
		if ( app != null ) app.tryToExit();
	}

}
